<?php

namespace app\modules\cruise\controllers;

use Yii;
use app\modules\cruise\models\RoomCode;
use app\modules\cruise\models\RoomUse;
use app\modules\cruise\models\Customer;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;

class StatisController extends Controller
{	

	/**
     * @inheritdoc
     */
    public function behaviors()
    {
        return [
            'verbs' => [
                'class' => VerbFilter::className(),
                'actions' => [
                    'delete' => ['POST'],
                ],
            ],
             'access' => [
                'class' => AccessControl::className(),
                'rules' => [
                    [
                        'allow' => true,
                        //'actions' => ['list', 'index','create','view','update','delete'],
                        'roles' => ['@'],
                    ],
                ],
            ],
        ];
    }

    //统计管理  房间和人员签到
    public function actionIndex($act='room')
    {

    	return $this->render('index',['act'=>$act]);
        
    }


}
